﻿using UnityEngine.InputSystem.XR;

namespace Assets.Scripts.DL.Enemy.CommonEnemy.States.Special {
	public class Hurt : CommonState<Controller> {
		//bool _isAnimOver;

		public Hurt(Controller controller, StateEnum stateName) : base(controller, stateName) {
			AddConditionToSelf(() => _controller.StateData.IsHurt);


		}

		public override void Enter() {
			_controller.PlayAnim(StateEnum.Hurt);
			//_isAnimOver = false;
		}

		public override void Update() {
		}

		public override void Exit() {
			_controller.StateData.IsHurt = false;
			_controller.StateData.IsSpecialState = false;
		}


	}
}
